package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.OrdersGoods;

/**
 * 订单详情Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-11
 */
public interface OrdersGoodsMapper 
{
    /**
     * 查询订单详情
     * 
     * @param id 订单详情主键
     * @return 订单详情
     */
    public OrdersGoods selectOrdersGoodsById(Long id);

    /**
     * 查询订单详情列表
     * 
     * @param ordersGoods 订单详情
     * @return 订单详情集合
     */
    public List<OrdersGoods> selectOrdersGoodsList(OrdersGoods ordersGoods);

    /**
     * 新增订单详情
     * 
     * @param ordersGoods 订单详情
     * @return 结果
     */
    public int insertOrdersGoods(OrdersGoods ordersGoods);

    /**
     * 修改订单详情
     * 
     * @param ordersGoods 订单详情
     * @return 结果
     */
    public int updateOrdersGoods(OrdersGoods ordersGoods);

    /**
     * 删除订单详情
     * 
     * @param id 订单详情主键
     * @return 结果
     */
    public int deleteOrdersGoodsById(Long id);

    /**
     * 批量删除订单详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrdersGoodsByIds(Long[] ids);

    void cancelOrder(String orderId);
}
